import { createApp  } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from './router/index'
import './css/index.scss'
import { defineGlobalComponents } from './global-components'
import { VTooltip } from 'v-tooltip'
import '@/plugins/axios.js'
import i18n from './i18n'

const app=createApp(App)
app.use(createPinia())
app.use(router)
app.use(i18n)
app.mount('#app')
app.provide('i18n', i18n)
// VTooltip
app.directive('tooltip', VTooltip)

defineGlobalComponents(app)